﻿/*************************
* Project: ConfigApp     *
* Class: main.cpp        *
* Desc: main             *
* Author: Tomas Cinert   *
* Date: 03.07.2013       *
*************************/

#include <QApplication>
#include <Windows.h>

#include "Wnd_ConfigApp.h"

/** Main entry point of application. */
int main(int argc, char *argv[])
{
  /* 
    Within the installer procedures, this mutex prevents a user from installing new versions
    of this application while the application is still running, and to prevent the user 
    from uninstalling a running application. 
    If the mutex exists, Setup/Uninstall will display the message: "[Setup or Uninstall] 
    has detected that [AppName] is currently running. Please close all instances of it now, 
    then click OK to continue, or Cancel to exit."
  */
    CreateMutex(NULL, FALSE, "ConfigApp_Mutex");

    //   InitLog();

    QApplication a(argc, argv);

    Wnd_ConfigApp w;
    w.show();  

    return a.exec();
}
